package open.template.work.udm.server.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserApi {

    private Logger LOGGER= LoggerFactory.getLogger(getClass());

    /**
     * 根据appKey获取用户密钥
     * @param appKey
     * @return
     */
    @RequestMapping("/user/key/{appKey}")
    public String getUserKey(@PathVariable("appKey") String appKey){
        LOGGER.info("获取用户密钥appKey={}",appKey);
        return "sdfadflakjsfd;aljfda;dkfja;dfk";
    }
}
